
public class Lectores implements Runnable {
	private Recursos recurso;
	public Lectores(Recursos recurso){
		this.recurso=recurso;
	}
	public void run() {
		
			try {
				System.out.println(Thread.currentThread().getName()
						+ "  Esta leyendo " + recurso.read());
				Thread.sleep((int) (50 + Math.random() * 100));
			} catch (Exception e) {
				System.out.println(e.getLocalizedMessage());
			}
		
	}

}
